package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.OrderCheckExpiredClientFallback;
import com.zqh.myfmmall.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-02 22:41
 */
@FeignClient(value = "order-checkExpired",fallbackFactory = OrderCheckExpiredClientFallback.class)
public interface OrderCheckExpiredClient{
    @PostMapping("checkExpiredOrder")
    Result checkExpiredOrder(@RequestParam("orderId") String orderId);
}